import React from 'react';
import { Settings, ChevronRight, Gift, Film, CreditCard, Heart, Star, HelpCircle, LogOut } from 'lucide-react';
import { useNavigate } from 'react-router-dom';

const Profile = () => {
  const navigate = useNavigate();
  
  return (
    <div className="flex flex-col h-full pb-16">
      {/* 头部 */}
      <div className="wx-header">
        <div className="wx-header-title">我的</div>
        <div className="wx-header-action">
          <Settings size={20} />
        </div>
      </div>
      
      <div className="wx-content">
        {/* 用户信息 */}
        <div className="bg-white p-4">
          <div className="flex items-center">
            <div className="w-16 h-16 rounded-full bg-gray-200"></div>
            <div className="ml-3">
              <p className="font-medium text-lg">用户昵称</p>
              <p className="text-sm text-gray-500">ID: 123456789</p>
            </div>
          </div>
          
          {/* 用户数据 */}
          <div className="flex justify-between mt-4 text-center">
            <div>
              <p className="font-medium">12</p>
              <p className="text-xs text-gray-500">我的物料</p>
            </div>
            <div>
              <p className="font-medium">8</p>
              <p className="text-xs text-gray-500">交换记录</p>
            </div>
            <div>
              <p className="font-medium">5</p>
              <p className="text-xs text-gray-500">活动记录</p>
            </div>
            <div>
              <p className="font-medium">128</p>
              <p className="text-xs text-gray-500">粉丝积分</p>
            </div>
          </div>
        </div>
        
        {/* 我的订单 */}
        <div className="bg-white mt-3 p-4">
          <div className="flex justify-between items-center mb-3">
            <h3 className="font-medium">我的订单</h3>
            <div className="flex items-center text-gray-500 text-sm">
              <span>全部订单</span>
              <ChevronRight size={16} />
            </div>
          </div>
          
          <div className="flex justify-between text-center">
            <div className="flex flex-col items-center">
              <div className="w-10 h-10 rounded-full bg-gray-100 flex items-center justify-center mb-1">
                <Gift size={20} className="text-green-500" />
              </div>
              <span className="text-xs">待发货</span>
            </div>
            <div className="flex flex-col items-center">
              <div className="w-10 h-10 rounded-full bg-gray-100 flex items-center justify-center mb-1">
                <Gift size={20} className="text-green-500" />
              </div>
              <span className="text-xs">待收货</span>
            </div>
            <div className="flex flex-col items-center">
              <div className="w-10 h-10 rounded-full bg-gray-100 flex items-center justify-center mb-1">
                <Film size={20} className="text-green-500" />
              </div>
              <span className="text-xs">待参加</span>
            </div>
            <div className="flex flex-col items-center">
              <div className="w-10 h-10 rounded-full bg-gray-100 flex items-center justify-center mb-1">
                <Star size={20} className="text-green-500" />
              </div>
              <span className="text-xs">待评价</span>
            </div>
          </div>
        </div>
        
        {/* 功能列表 */}
        <div className="bg-white mt-3">
          <div className="p-3 border-b flex justify-between items-center">
            <div className="flex items-center">
              <div className="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center mr-3">
                <CreditCard size={18} className="text-blue-500" />
              </div>
              <span>我的钱包</span>
            </div>
            <ChevronRight size={18} className="text-gray-400" />
          </div>
          
          <div className="p-3 border-b flex justify-between items-center">
            <div className="flex items-center">
              <div className="w-8 h-8 rounded-full bg-red-100 flex items-center justify-center mr-3">
                <Heart size={18} className="text-red-500" />
              </div>
              <span>我的收藏</span>
            </div>
            <ChevronRight size={18} className="text-gray-400" />
          </div>
          
          <div className="p-3 border-b flex justify-between items-center">
            <div className="flex items-center">
              <div className="w-8 h-8 rounded-full bg-purple-100 flex items-center justify-center mr-3">
                <Star size={18} className="text-purple-500" />
              </div>
              <span>我的粉丝等级</span>
            </div>
            <ChevronRight size={18} className="text-gray-400" />
          </div>
          
          <div className="p-3 border-b flex justify-between items-center">
            <div className="flex items-center">
              <div className="w-8 h-8 rounded-full bg-green-100 flex items-center justify-center mr-3">
                <HelpCircle size={18} className="text-green-500" />
              </div>
              <span>帮助中心</span>
            </div>
            <ChevronRight size={18} className="text-gray-400" />
          </div>
        </div>
        
        {/* 退出登录 */}
        <div className="mt-5 px-4">
          <button className="w-full py-3 border border-gray-300 rounded-lg flex items-center justify-center text-gray-600">
            <LogOut size={18} className="mr-2" />
            退出登录
          </button>
        </div>
      </div>
    </div>
  );
};

export default Profile;